 #!/bin/bash
# shurenyun get token
. ./config.cfg

TOKEN=`./get_token.sh`
MARATHON_ID=`curl -X GET --header "Accept: application/json" --header "Authorization: $TOKEN"  "$BASE_URL/api/v3/clusters/$SRY_CLUSTERID/apps" 2>/dev/null | awk -F 'tsung_slave_node' '{print $2}' | awk -F '\"' '{print $5}'`
echo $MARATHON_ID
